Skip to content

Fixed dashboard wrapper codesandbox export error#7954

Merged
tlabaj merged 1 commit intopatternfly:mainfrom
evwilkin:fix/6596-dashboardwrapper-imports
Sep 9, 2022
Merged

Fixed dashboard wrapper codesandbox export error#7954
tlabaj merged 1 commit intopatternfly:mainfrom
evwilkin:fix/6596-dashboardwrapper-imports

Conversation

@evwilkin
Copy link
Copy Markdown
Member

@evwilkin evwilkin commented Sep 8, 2022

What: Closes #6596

This PR changes all imports of DashboardWrapper and DashboardHeader from relative imports paths to absolute import paths, which allows Codesandbox to properly load the components.

Note: DashboardHeader image is not loading correctly in Codesandbox and will require separate investigation:
Screen Shot 2022-09-08 at 5 03 38 PM

Note: a different solution was implemented for relative import paths for patternfly.org, but that did not translate to the problem here as that relies on the files being imported from an external package. Updating the relative paths here will not conflict with that update as it will bypass the check for a relative import path implemented in that issue.

@evwilkin evwilkin changed the title fixed DashboardWrapper codesandbox export error Fixed dashboard wrapper codesandbox export error Sep 8, 2022
@evwilkin evwilkin requested review from kmcfaul and tlabaj September 8, 2022 20:50
@patternfly-build
Copy link
Copy Markdown
Collaborator

patternfly-build commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tlabaj tlabaj merged commit fa4dec6 into patternfly:main Sep 9, 2022
@patternfly-build
Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.76.2
  • @patternfly/react-catalog-view-extension@4.88.2
  • @patternfly/react-charts@6.90.2
  • @patternfly/react-code-editor@4.78.2
  • @patternfly/react-console@4.88.2
  • @patternfly/react-core@4.237.2
  • @patternfly/react-docs@5.98.2
  • @patternfly/react-icons@4.88.2
  • @patternfly/react-inline-edit-extension@4.82.2
  • demo-app-ts@4.197.2
  • @patternfly/react-integration@4.199.2
  • @patternfly/react-log-viewer@4.82.2
  • @patternfly/react-styles@4.87.2
  • @patternfly/react-table@4.106.2
  • @patternfly/react-tokens@4.89.2
  • @patternfly/react-topology@4.84.2
  • @patternfly/react-virtualized-extension@4.84.2
  • transformer-cjs-imports@4.75.2

Thanks for your contribution! 🎉

andyyvo pushed a commit to andyyvo/patternfly-react that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DashboardWrapper: codesandbox export error

4 participants